package net.pugsplace.gpremacy.server;

import net.pugsplace.gpremacy.packets.Packet;
import net.pugsplace.gpremacy.server.net.Connection;

public interface ClientListener {

	/**
	 * Called by the Connection to specify that it received a packet
	 * 
	 * @return true if this particular method handled the packet, false
	 *         otherwise.
	 */
	public boolean receivedPacket(Connection connectionObject, Packet packetObject);

	/** Called when a client has disconnected */
	public void clientDisconnected(Connection connectionObject);

}
